package com.founder.devwork.dto.res;

import com.fasterxml.jackson.annotation.JsonIgnore;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * TopCommitterDTO 用于表示顶级提交者。
 * 提供姓名、提交数、总变更数、角色、部门、平均每月提交数和平均每月变更数等字段。
 */
@Data
public class TopCommitterDTO {

    private String name;
    private Long commitCount;
    private Long totalChanges;
    private String role;
    private String department;
    private double averageMonthlyCommits;
    private double averageMonthlyChanges;

    // 临时字段用于计算
    @JsonIgnore
    private LocalDateTime minDate;

    @JsonIgnore
    private LocalDateTime maxDate;
}
